package com.yoke.assistant.bridge;

import android.view.accessibility.AccessibilityNodeInfo;
import android.webkit.JavascriptInterface;

import com.yoke.assistant.service.AssistantService;

public class JsView {

    private AccessibilityNodeInfo mNodeInfo;

    public JsView(AccessibilityNodeInfo nodeInfo) {
        mNodeInfo = nodeInfo;
    }

    @JavascriptInterface
    public void click() {
        AssistantService.service.clickView(mNodeInfo);
    }
}
